package com.itheima.service.mongo;

import com.itheima.vo.PageBeanVo;
import com.itheima.vo.UserLikeCountVo;

public interface UserLikeCountService {
    /**
     * 根据用户id统计喜欢，互相喜欢和粉丝数量
     * @param userId
     * @return
     */
    UserLikeCountVo selectCount(Long userId);


    /**
     * 根据用户id查询喜欢，互相喜欢和粉丝
     * @param type
     * @param userId
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageBeanVo selectPageByType(Integer type, Long userId, Integer pageNum, Integer pageSize);


    /**
     *
     * @param userId
     * @param uid
     */
    void like(Long userId, Integer uid);


    /**
     *
     * @param userId
     * @param uid
     */
    void noLike(Long userId, Integer uid);
}
